type arr ={
  name :string
  age:number 
  gender:string
}
type newarr=Pick<arr,'age'>
const p1:newarr={age:13}

type Person = {
  name: string
  age: number
  height: number
  sex: number
}
type OmitPerson = Omit<Person, 'sex'>
const p2 :OmitPerson={name: 'aa', age: 23, height: 23}